package com.example.tms.mapper;

import com.example.tms.bean.WaybillVMgmt;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface WaybillVMapper extends JpaRepository<WaybillVMgmt,String>, JpaSpecificationExecutor<WaybillVMgmt> {

    //查询运单信息（运单id）
    @Query(value = "select * from waybill_mgmt where ydid = ?1 and sfcz = true", nativeQuery = true)
    WaybillVMgmt findByYdid(String ydid);
}
